home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / OCEStandardMail.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  24.3 KB  |  1,073 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        OCEStandardMail.a
  3. ;
  4. ;    Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5. ;
  6. ;    Version:    Technology:    AOCE Toolbox 1.02
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__OCESTANDARDMAIL__') = 'UNDEFINED' THEN
  21. __OCESTANDARDMAIL__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  25.     include 'Events.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'Quickdraw.a'                                        ;
  30. ;            include 'MixedMode.a'                                    ;
  31. ;            include 'QuickdrawText.a'                                ;
  32. ;        include 'OSUtils.a'                                        ;
  33. ;            include 'Memory.a'                                        ;
  34.  
  35.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  36.     include 'AppleEvents.a'
  37.     ENDIF
  38. ;        include 'Errors.a'                                            ;
  39. ;        include 'EPPC.a'                                            ;
  40. ;            include 'AppleTalk.a'                                    ;
  41. ;            include 'Files.a'                                        ;
  42. ;                include 'Finder.a'                                    ;
  43. ;            include 'PPCToolbox.a'                                    ;
  44. ;            include 'Processes.a'                                    ;
  45. ;        include 'Notification.a'                                    ;
  46.  
  47.     IF &TYPE('__CONTROLS__') = 'UNDEFINED' THEN
  48.     include 'Controls.a'
  49.     ENDIF
  50. ;        include 'Menus.a'                                            ;
  51.  
  52.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  53.     include 'Dialogs.a'
  54.     ENDIF
  55. ;        include 'Windows.a'                                        ;
  56. ;        include 'TextEdit.a'                                        ;
  57.  
  58.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  59.     include 'Files.a'
  60.     ENDIF
  61.  
  62.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  63.     include 'Windows.a'
  64.     ENDIF
  65.  
  66.     IF &TYPE('__OCEAUTHDIR__') = 'UNDEFINED' THEN
  67.     include 'OCEAuthDir.a'
  68.     ENDIF
  69. ;        include 'OCE.a'                                            ;
  70. ;            include 'Aliases.a'                                    ;
  71. ;            include 'Script.a'                                        ;
  72. ;                include 'IntlResources.a'                            ;
  73.  
  74.     IF &TYPE('__OCEMAIL__') = 'UNDEFINED' THEN
  75.     include 'OCEMail.a'
  76.     ENDIF
  77. ;        include 'DigitalSignature.a'                                ;
  78. ;        include 'OCEMessaging.a'                                    ;
  79.  
  80. kSMPVersion                        EQU        1
  81. gestaltSMPMailerVersion            EQU        'malr'
  82. gestaltSMPSPSendLetterVersion    EQU        'spsl'
  83. kSMPNativeFormatName            EQU        'natv'
  84.  
  85. LetterSpec                 RECORD    0
  86. spec                     ds.l   3        ; offset: $0 (0)
  87. sizeof                     EQU *            ; size:   $C (12)
  88.                         ENDR
  89.  
  90. ; typedef struct LetterSpec  LetterSpec
  91.  
  92. typeLetterSpec                    EQU        'lttr'
  93.  
  94. ;    Wildcard used for filtering letter types. 
  95. FilterAnyLetter                    EQU        'ltr*'
  96. FilterAppleLetterContent        EQU        'ltc*'
  97. FilterImageContent                EQU        'lti*'
  98.  
  99. LetterDescriptor         RECORD    0
  100. onDisk                     ds.b   1        ; offset: $0 (0)
  101. filler1                     ds.b   1        ; offset: $1 (1)
  102. fileSpec                 ds     FSSpec    ; offset: $2 (2)
  103.                          ORG 2
  104. mailboxSpec                 ds.l   3        ; offset: $2 (2)
  105.                          ORG 72
  106. sizeof                     EQU *            ; size:   $48 (72)
  107.                         ENDR
  108.  
  109. ; typedef struct LetterDescriptor  LetterDescriptor
  110. ;
  111. ;SMPPSendAs values.  You may add the following values together to determine how the
  112. ;file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  113. ;will allow you to send the letter as an image so that it will work with fax gateways
  114. ;and send as an enclosure as well.
  115. ;
  116.  
  117. kSMPSendAsEnclosureBit            EQU        0                    ; Appears as letter with enclosures 
  118. kSMPSendFileOnlyBit                EQU        1                    ; Appears as a file in mailbox. 
  119. kSMPSendAsImageBit                EQU        2                    ; Content imaged in letter 
  120.  
  121. ; Values of SMPPSendAs 
  122. kSMPSendAsEnclosureMask            EQU        1
  123. kSMPSendFileOnlyMask            EQU        2
  124. kSMPSendAsImageMask                EQU        4
  125.  
  126. ; typedef Byte                 SMPPSendAs
  127. SMPRecipientDescriptor     RECORD    0
  128. next                     ds.l   1        ; offset: $0 (0)        ;  Q-Link. 
  129. result                     ds.w   1        ; offset: $4 (4)        ;  result code when using the object. 
  130. recipient                 ds.l   1        ; offset: $6 (6)        ;  Pointer to a Packed Address. 
  131. size                     ds.l   1        ; offset: $A (10)        ;  length of recipient in bytes. 
  132. theAddress                 ds.w   7        ; offset: $E (14)        ;  structure points into recipient and theRID. 
  133. theRID                     ds.l   5        ; offset: $1C (28)        ;  structure points into recipient. 
  134. sizeof                     EQU *            ; size:   $30 (48)
  135.                         ENDR
  136.  
  137. ; typedef struct SMPRecipientDescriptor  SMPRecipientDescriptor
  138. ; typedef SMPRecipientDescriptor  *SMPRecipientDescriptorPtr
  139. SMPEnclosureDescriptor     RECORD    0
  140. next                     ds.l   1        ; offset: $0 (0)
  141. result                     ds.w   1        ; offset: $4 (4)
  142. fileSpec                 ds     FSSpec    ; offset: $6 (6)
  143. fileCreator                 ds.l   1        ; offset: $4C (76)        ;  Creator of this enclosure. 
  144. fileType                 ds.l   1        ; offset: $50 (80)        ;  File Type of this enclosure. 
  145. sizeof                     EQU *            ; size:   $54 (84)
  146.                         ENDR
  147.  
  148. ; typedef struct SMPEnclosureDescriptor  SMPEnclosureDescriptor
  149. ; typedef SMPEnclosureDescriptor  *SMPEnclosureDescriptorPtr
  150. SMPLetterPB             RECORD    0
  151. result                     ds.w   1        ; offset: $0 (0)        ; result of operation 
  152. subject                     ds.l   1        ; offset: $2 (2)        ; RString 
  153. senderIdentity             ds.l   1        ; offset: $6 (6)        ; Letter is sent from this Identity 
  154. toList                     ds.l   1        ; offset: $A (10)        ; Pointer to linked list 
  155. ccList                     ds.l   1        ; offset: $E (14)        ; Pointer to linked list 
  156. bccList                     ds.l   1        ; offset: $12 (18)        ; Pointer to linked list 
  157. script                     ds.w   1        ; offset: $16 (22)        ; Identifier for language 
  158. textSize                 ds.l   1        ; offset: $18 (24)        ; length of body data 
  159. textBuffer                 ds.l   1        ; offset: $1C (28)        ; body of the letter 
  160. sendAs                     ds.b   1        ; offset: $20 (32)        ; Send as Letter,Enclosure,Image 
  161. padByte                     ds.b   1        ; offset: $21 (33)
  162. enclosures                 ds.l   1        ; offset: $22 (34)        ; files to be enclosed 
  163. drawImageProc             ds.l   1        ; offset: $26 (38)        ; For imaging 
  164. imageRefCon                 ds.l   1        ; offset: $2A (42)        ; For imaging 
  165. supportsColor             ds.b   1        ; offset: $2E (46)        ; For imaging - set to true if you application supports color imaging 
  166. filler1                     ds.b   1        ; offset: $2F (47)
  167. sizeof                     EQU *            ; size:   $30 (48)
  168.                         ENDR
  169.  
  170. ; typedef struct SMPLetterPB  SMPLetterPB
  171. ; typedef SMPLetterPB         *SMPLetterPBPtr
  172.  
  173. kSMPAppMustHandleEventBit        EQU        0
  174. kSMPAppShouldIgnoreEventBit        EQU        1
  175. kSMPContractedBit                EQU        2
  176. kSMPExpandedBit                    EQU        3
  177. kSMPMailerBecomesTargetBit        EQU        4
  178. kSMPAppBecomesTargetBit            EQU        5
  179. kSMPCursorOverMailerBit            EQU        6
  180. kSMPCreateCopyWindowBit            EQU        7
  181. kSMPDisposeCopyWindowBit        EQU        8
  182.  
  183. ; Values of SMPMailerResult 
  184. kSMPAppMustHandleEventMask        EQU        1 << kSMPAppMustHandleEventBit
  185. kSMPAppShouldIgnoreEventMask    EQU        1 << kSMPAppShouldIgnoreEventBit
  186. kSMPContractedMask                EQU        1 << kSMPContractedBit
  187. kSMPExpandedMask                EQU        1 << kSMPExpandedBit
  188. kSMPMailerBecomesTargetMask        EQU        1 << kSMPMailerBecomesTargetBit
  189. kSMPAppBecomesTargetMask        EQU        1 << kSMPAppBecomesTargetBit
  190. kSMPCursorOverMailerMask        EQU        1 << kSMPCursorOverMailerBit
  191. kSMPCreateCopyWindowMask        EQU        1 << kSMPCreateCopyWindowBit
  192. kSMPDisposeCopyWindowMask        EQU        1 << kSMPDisposeCopyWindowBit
  193.  
  194. ; typedef unsigned long     SMPMailerResult
  195. ; Values of SMPMailerComponent
  196.  
  197. kSMPOther                        EQU        -1
  198. kSMPFrom                        EQU        32
  199. kSMPTo                            EQU        20
  200. kSMPRegarding                    EQU        22
  201. kSMPSendDateTime                EQU        29
  202. kSMPAttachments                    EQU        26
  203. kSMPAddressOMatic                EQU        16
  204.  
  205. ; typedef unsigned long     SMPMailerComponent
  206.  
  207. kSMPToAddress                    EQU        kMailToBit
  208. kSMPCCAddress                    EQU        kMailCcBit
  209. kSMPBCCAddress                    EQU        kMailBccBit
  210.  
  211. ; typedef MailAttributeID     SMPAddressType
  212.  
  213. kSMPUndoCommand                    EQU        0
  214. kSMPCutCommand                    EQU        1
  215. kSMPCopyCommand                    EQU        2
  216. kSMPPasteCommand                EQU        3
  217. kSMPClearCommand                EQU        4
  218. kSMPSelectAllCommand            EQU        5
  219.  
  220. ; typedef unsigned short     SMPEditCommand
  221.  
  222. kSMPUndoDisabled                EQU        0
  223. kSMPAppMayUndo                    EQU        1
  224. kSMPMailerUndo                    EQU        2
  225.  
  226. ; typedef unsigned short     SMPUndoState
  227. ;
  228. ;SMPSendFormatMask:
  229. ;
  230. ;Bitfield indicating which combinations of formats are included in,
  231. ;should be included or, or can be included in a letter.
  232. ;
  233.  
  234. kSMPNativeBit                    EQU        0
  235. kSMPImageBit                    EQU        1
  236. kSMPStandardInterchangeBit        EQU        2
  237.  
  238. ; Values of SMPSendFormatMask 
  239. kSMPNativeMask                    EQU        1
  240. kSMPImageMask                    EQU        2
  241. kSMPStandardInterchangeMask        EQU        4
  242.  
  243. ; typedef unsigned long     SMPSendFormatMask
  244. ;
  245. ;    Pseudo-events passed to the clients filter proc for initialization and cleanup.
  246. ;
  247.  
  248. kSMPSendOptionsStart            EQU        -1
  249. kSMPSendOptionsEnd                EQU        -2
  250.  
  251. ;
  252. ;SMPSendFormatMask:
  253. ;
  254. ;Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  255. ;
  256. SMPSendFormat             RECORD    0
  257. whichFormats             ds.l   1        ; offset: $0 (0)
  258. whichNativeFormat         ds.w   1        ; offset: $4 (4)        ; 0 based 
  259. sizeof                     EQU *            ; size:   $6 (6)
  260.                         ENDR
  261.  
  262. ; typedef struct SMPSendFormat  SMPSendFormat
  263. SMPLetterInfo             RECORD    0
  264. letterCreator             ds.l   1        ; offset: $0 (0)
  265. letterType                 ds.l   1        ; offset: $4 (4)
  266. subject                     ds.l   9        ; offset: $8 (8)
  267. sender                     ds.l   9        ; offset: $2C (44)
  268. sizeof                     EQU *            ; size:   $50 (80)
  269.                         ENDR
  270.  
  271. ; typedef struct SMPLetterInfo  SMPLetterInfo
  272.  
  273. kSMPSave                        EQU        0
  274. kSMPSaveAs                        EQU        1
  275. kSMPSaveACopy                    EQU        2
  276.  
  277. ; typedef unsigned short     SMPSaveType
  278. SMPMailerState             RECORD    0
  279. mailerCount                 ds.w   1        ; offset: $0 (0)
  280. currentMailer             ds.w   1        ; offset: $2 (2)
  281. upperLeft                 ds     Point    ; offset: $4 (4)
  282. hasBeenReceived             ds.b   1        ; offset: $8 (8)
  283. isTarget                 ds.b   1        ; offset: $9 (9)
  284. isExpanded                 ds.b   1        ; offset: $A (10)
  285. canMoveToTrash             ds.b   1        ; offset: $B (11)
  286. canTag                     ds.b   1        ; offset: $C (12)
  287. padByte2                 ds.b   1        ; offset: $D (13)
  288. changeCount                 ds.l   1        ; offset: $E (14)
  289. targetComponent             ds.l   1        ; offset: $12 (18)
  290. canCut                     ds.b   1        ; offset: $16 (22)
  291. canCopy                     ds.b   1        ; offset: $17 (23)
  292. canPaste                 ds.b   1        ; offset: $18 (24)
  293. canClear                 ds.b   1        ; offset: $19 (25)
  294. canSelectAll             ds.b   1        ; offset: $1A (26)
  295. padByte3                 ds.b   1        ; offset: $1B (27)
  296. undoState                 ds.w   1        ; offset: $1C (28)
  297. undoWhat                 ds.l   16        ; offset: $1E (30)
  298. sizeof                     EQU *            ; size:   $5E (94)
  299.                         ENDR
  300.  
  301. ; typedef struct SMPMailerState  SMPMailerState
  302. SMPSendOptions             RECORD    0
  303. signWhenSent             ds.b   1        ; offset: $0 (0)
  304. priority                 ds.b   1        ; offset: $1 (1)
  305. sizeof                     EQU *            ; size:   $2 (2)
  306.                         ENDR
  307.  
  308. ; typedef struct SMPSendOptions  SMPSendOptions
  309. ; typedef SMPSendOptions     *SMPSendOptionsPtr, **SMPSendOptionsHandle
  310. SMPCloseOptions         RECORD    0
  311. moveToTrash                 ds.b   1        ; offset: $0 (0)
  312. addTag                     ds.b   1        ; offset: $1 (1)
  313. tag                         ds.l   9        ; offset: $2 (2)
  314. sizeof                     EQU *            ; size:   $26 (38)
  315.                         ENDR
  316.  
  317. ; typedef struct SMPCloseOptions  SMPCloseOptions
  318. ; typedef SMPCloseOptions     *SMPCloseOptionsPtr
  319. ;----------------------------------------------------------------------------------------
  320. ;    Send Package Routines
  321. ;----------------------------------------------------------------------------------------
  322. ;
  323. ; pascal OSErr SMPSendLetter(SMPLetterPBPtr theLetter)
  324. ;
  325.     IF ¬ GENERATINGCFM THEN
  326.         Macro
  327.         _SMPSendLetter
  328.             dc.w     $203C
  329.             dc.w     $0002
  330.             dc.w     $01F4
  331.             dc.w     $AA5D
  332.         EndM
  333.     ELSE
  334.         IMPORT_CFM_FUNCTION    SMPSendLetter
  335.     ENDIF
  336.  
  337. ;
  338. ; pascal OSErr SMPNewPage(OpenCPicParams *newHeader)
  339. ;
  340.     IF ¬ GENERATINGCFM THEN
  341.         Macro
  342.         _SMPNewPage
  343.             dc.w     $203C
  344.             dc.w     $0002
  345.             dc.w     $0834
  346.             dc.w     $AA5D
  347.         EndM
  348.     ELSE
  349.         IMPORT_CFM_FUNCTION    SMPNewPage
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal OSErr SMPImageErr(void)
  354. ;
  355.     IF ¬ GENERATINGCFM THEN
  356.         Macro
  357.         _SMPImageErr
  358.             dc.w     $203C
  359.             dc.w     $0000
  360.             dc.w     $0835
  361.             dc.w     $AA5D
  362.         EndM
  363.     ELSE
  364.         IMPORT_CFM_FUNCTION    SMPImageErr
  365.     ENDIF
  366.  
  367. ;
  368. ; pascal OSErr SMPResolveToRecipient(PackedDSSpecPtr dsSpec, SMPRecipientDescriptorPtr *recipientList, AuthIdentity identity)
  369. ;
  370.     IF ¬ GENERATINGCFM THEN
  371.         Macro
  372.         _SMPResolveToRecipient
  373.             dc.w     $203C
  374.             dc.w     $0006
  375.             dc.w     $044C
  376.             dc.w     $AA5D
  377.         EndM
  378.     ELSE
  379.         IMPORT_CFM_FUNCTION    SMPResolveToRecipient
  380.     ENDIF
  381.  
  382. ;
  383. ; pascal OSErr SMPInitMailer(long mailerVersion)
  384. ;
  385.     IF ¬ GENERATINGCFM THEN
  386.         Macro
  387.         _SMPInitMailer
  388.             dc.w     $203C
  389.             dc.w     $0002
  390.             dc.w     $1285
  391.             dc.w     $AA5D
  392.         EndM
  393.     ELSE
  394.         IMPORT_CFM_FUNCTION    SMPInitMailer
  395.     ENDIF
  396.  
  397. ;
  398. ; pascal OSErr SMPGetDimensions(short *width, short *contractedHeight, short *expandedHeight)
  399. ;
  400.     IF ¬ GENERATINGCFM THEN
  401.         Macro
  402.         _SMPGetDimensions
  403.             dc.w     $203C
  404.             dc.w     $0006
  405.             dc.w     $125C
  406.             dc.w     $AA5D
  407.         EndM
  408.     ELSE
  409.         IMPORT_CFM_FUNCTION    SMPGetDimensions
  410.     ENDIF
  411.  
  412. ;
  413. ; pascal OSErr SMPGetTabInfo(SMPMailerComponent *firstTab, SMPMailerComponent *lastTab)
  414. ;
  415.     IF ¬ GENERATINGCFM THEN
  416.         Macro
  417.         _SMPGetTabInfo
  418.             dc.w     $203C
  419.             dc.w     $0004
  420.             dc.w     $1274
  421.             dc.w     $AA5D
  422.         EndM
  423.     ELSE
  424.         IMPORT_CFM_FUNCTION    SMPGetTabInfo
  425.     ENDIF
  426.  
  427. ;
  428. ; pascal OSErr SMPNewMailer(WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  429. ;
  430.     IF ¬ GENERATINGCFM THEN
  431.         Macro
  432.         _SMPNewMailer
  433.             dc.w     $203C
  434.             dc.w     $000C
  435.             dc.w     $125D
  436.             dc.w     $AA5D
  437.         EndM
  438.     ELSE
  439.         IMPORT_CFM_FUNCTION    SMPNewMailer
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal OSErr SMPPrepareToClose(WindowPtr window)
  444. ;
  445.     IF ¬ GENERATINGCFM THEN
  446.         Macro
  447.         _SMPPrepareToClose
  448.             dc.w     $203C
  449.             dc.w     $0002
  450.             dc.w     $1287
  451.             dc.w     $AA5D
  452.         EndM
  453.     ELSE
  454.         IMPORT_CFM_FUNCTION    SMPPrepareToClose
  455.     ENDIF
  456.  
  457. ;
  458. ; pascal OSErr SMPCloseOptionsDialog(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  459. ;
  460.     IF ¬ GENERATINGCFM THEN
  461.         Macro
  462.         _SMPCloseOptionsDialog
  463.             dc.w     $203C
  464.             dc.w     $0004
  465.             dc.w     $1288
  466.             dc.w     $AA5D
  467.         EndM
  468.     ELSE
  469.         IMPORT_CFM_FUNCTION    SMPCloseOptionsDialog
  470.     ENDIF
  471.  
  472. ;
  473. ; pascal OSErr SMPTagDialog(WindowPtr window, RString32 *theTag)
  474. ;
  475.     IF ¬ GENERATINGCFM THEN
  476.         Macro
  477.         _SMPTagDialog
  478.             dc.w     $203C
  479.             dc.w     $0004
  480.             dc.w     $128B
  481.             dc.w     $AA5D
  482.         EndM
  483.     ELSE
  484.         IMPORT_CFM_FUNCTION    SMPTagDialog
  485.     ENDIF
  486.  
  487. ;
  488. ; pascal OSErr SMPDisposeMailer(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  489. ;
  490.     IF ¬ GENERATINGCFM THEN
  491.         Macro
  492.         _SMPDisposeMailer
  493.             dc.w     $203C
  494.             dc.w     $0004
  495.             dc.w     $125E
  496.             dc.w     $AA5D
  497.         EndM
  498.     ELSE
  499.         IMPORT_CFM_FUNCTION    SMPDisposeMailer
  500.     ENDIF
  501.  
  502. ;
  503. ; pascal OSErr SMPMailerEvent(const EventRecord *event, SMPMailerResult *whatHappened, FrontWindowUPP frontWindowCB, long clientData)
  504. ;
  505.     IF ¬ GENERATINGCFM THEN
  506.         Macro
  507.         _SMPMailerEvent
  508.             dc.w     $203C
  509.             dc.w     $0008
  510.             dc.w     $125F
  511.             dc.w     $AA5D
  512.         EndM
  513.     ELSE
  514.         IMPORT_CFM_FUNCTION    SMPMailerEvent
  515.     ENDIF
  516.  
  517. ;
  518. ; pascal OSErr SMPClearUndo(WindowPtr window)
  519. ;
  520.     IF ¬ GENERATINGCFM THEN
  521.         Macro
  522.         _SMPClearUndo
  523.             dc.w     $203C
  524.             dc.w     $0002
  525.             dc.w     $1275
  526.             dc.w     $AA5D
  527.         EndM
  528.     ELSE
  529.         IMPORT_CFM_FUNCTION    SMPClearUndo
  530.     ENDIF
  531.  
  532. ;
  533. ; pascal OSErr SMPMailerEditCommand(WindowPtr window, SMPEditCommand command, SMPMailerResult *whatHappened)
  534. ;
  535.     IF ¬ GENERATINGCFM THEN
  536.         Macro
  537.         _SMPMailerEditCommand
  538.             dc.w     $203C
  539.             dc.w     $0005
  540.             dc.w     $1260
  541.             dc.w     $AA5D
  542.         EndM
  543.     ELSE
  544.         IMPORT_CFM_FUNCTION    SMPMailerEditCommand
  545.     ENDIF
  546.  
  547. ;
  548. ; pascal OSErr SMPMailerForward(WindowPtr window, AuthIdentity from)
  549. ;
  550.     IF ¬ GENERATINGCFM THEN
  551.         Macro
  552.         _SMPMailerForward
  553.             dc.w     $203C
  554.             dc.w     $0004
  555.             dc.w     $1261
  556.             dc.w     $AA5D
  557.         EndM
  558.     ELSE
  559.         IMPORT_CFM_FUNCTION    SMPMailerForward
  560.     ENDIF
  561.  
  562. ;
  563. ; pascal OSErr SMPMailerReply(WindowPtr originalLetter, WindowPtr newLetter, Boolean replyToAll, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  564. ;
  565.     IF ¬ GENERATINGCFM THEN
  566.         Macro
  567.         _SMPMailerReply
  568.             dc.w     $203C
  569.             dc.w     $000F
  570.             dc.w     $1262
  571.             dc.w     $AA5D
  572.         EndM
  573.     ELSE
  574.         IMPORT_CFM_FUNCTION    SMPMailerReply
  575.     ENDIF
  576.  
  577. ;
  578. ; pascal OSErr SMPGetMailerState(WindowPtr window, SMPMailerState *itsState)
  579. ;
  580.     IF ¬ GENERATINGCFM THEN
  581.         Macro
  582.         _SMPGetMailerState
  583.             dc.w     $203C
  584.             dc.w     $0004
  585.             dc.w     $1263
  586.             dc.w     $AA5D
  587.         EndM
  588.     ELSE
  589.         IMPORT_CFM_FUNCTION    SMPGetMailerState
  590.     ENDIF
  591.  
  592. ;
  593. ; pascal OSErr SMPPrepareCoverPages(WindowPtr window, short *pageCount)
  594. ;
  595.     IF ¬ GENERATINGCFM THEN
  596.         Macro
  597.         _SMPPrepareCoverPages
  598.             dc.w     $203C
  599.             dc.w     $0004
  600.             dc.w     $1264
  601.             dc.w     $AA5D
  602.         EndM
  603.     ELSE
  604.         IMPORT_CFM_FUNCTION    SMPPrepareCoverPages
  605.     ENDIF
  606.  
  607. ;
  608. ; pascal OSErr SMPDrawNthCoverPage(WindowPtr window, short pageNumber, Boolean doneDrawingCoverPages)
  609. ;
  610.     IF ¬ GENERATINGCFM THEN
  611.         Macro
  612.         _SMPDrawNthCoverPage
  613.             dc.w     $203C
  614.             dc.w     $0004
  615.             dc.w     $1265
  616.             dc.w     $AA5D
  617.         EndM
  618.     ELSE
  619.         IMPORT_CFM_FUNCTION    SMPDrawNthCoverPage
  620.     ENDIF
  621.  
  622. ;
  623. ; pascal OSErr SMPPrepareToChange(WindowPtr window)
  624. ;
  625.     IF ¬ GENERATINGCFM THEN
  626.         Macro
  627.         _SMPPrepareToChange
  628.             dc.w     $203C
  629.             dc.w     $0002
  630.             dc.w     $1289
  631.             dc.w     $AA5D
  632.         EndM
  633.     ELSE
  634.         IMPORT_CFM_FUNCTION    SMPPrepareToChange
  635.     ENDIF
  636.  
  637. ;
  638. ; pascal OSErr SMPContentChanged(WindowPtr window)
  639. ;
  640.     IF ¬ GENERATINGCFM THEN
  641.         Macro
  642.         _SMPContentChanged
  643.             dc.w     $203C
  644.             dc.w     $0002
  645.             dc.w     $126F
  646.             dc.w     $AA5D
  647.         EndM
  648.     ELSE
  649.         IMPORT_CFM_FUNCTION    SMPContentChanged
  650.     ENDIF
  651.  
  652. ;
  653. ; pascal OSErr SMPBeginSave(WindowPtr window, const FSSpec *diskLetter, OSType creator, OSType fileType, SMPSaveType saveType, Boolean *mustAddContent)
  654. ;
  655.     IF ¬ GENERATINGCFM THEN
  656.         Macro
  657.         _SMPBeginSave
  658.             dc.w     $203C
  659.             dc.w     $000B
  660.             dc.w     $1266
  661.             dc.w     $AA5D
  662.         EndM
  663.     ELSE
  664.         IMPORT_CFM_FUNCTION    SMPBeginSave
  665.     ENDIF
  666.  
  667. ;
  668. ; pascal OSErr SMPEndSave(WindowPtr window, Boolean okToSave)
  669. ;
  670.     IF ¬ GENERATINGCFM THEN
  671.         Macro
  672.         _SMPEndSave
  673.             dc.w     $203C
  674.             dc.w     $0003
  675.             dc.w     $1270
  676.             dc.w     $AA5D
  677.         EndM
  678.     ELSE
  679.         IMPORT_CFM_FUNCTION    SMPEndSave
  680.     ENDIF
  681.  
  682. ;
  683. ; pascal OSErr SMPBeginSend(WindowPtr window, OSType creator, OSType fileType, SMPSendOptionsPtr sendOptions, Boolean *mustAddContent)
  684. ;
  685.     IF ¬ GENERATINGCFM THEN
  686.         Macro
  687.         _SMPBeginSend
  688.             dc.w     $203C
  689.             dc.w     $000A
  690.             dc.w     $1267
  691.             dc.w     $AA5D
  692.         EndM
  693.     ELSE
  694.         IMPORT_CFM_FUNCTION    SMPBeginSend
  695.     ENDIF
  696.  
  697. ;
  698. ; pascal OSErr SMPEndSend(WindowPtr window, Boolean okToSend)
  699. ;
  700.     IF ¬ GENERATINGCFM THEN
  701.         Macro
  702.         _SMPEndSend
  703.             dc.w     $203C
  704.             dc.w     $0003
  705.             dc.w     $1271
  706.             dc.w     $AA5D
  707.         EndM
  708.     ELSE
  709.         IMPORT_CFM_FUNCTION    SMPEndSend
  710.     ENDIF
  711.  
  712. ;
  713. ; pascal OSErr SMPOpenLetter(const LetterDescriptor *letter, WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  714. ;
  715.     IF ¬ GENERATINGCFM THEN
  716.         Macro
  717.         _SMPOpenLetter
  718.             dc.w     $203C
  719.             dc.w     $000C
  720.             dc.w     $1268
  721.             dc.w     $AA5D
  722.         EndM
  723.     ELSE
  724.         IMPORT_CFM_FUNCTION    SMPOpenLetter
  725.     ENDIF
  726.  
  727. ;
  728. ; pascal OSErr SMPAddMainEnclosure(WindowPtr window, const FSSpec *enclosure)
  729. ;
  730.     IF ¬ GENERATINGCFM THEN
  731.         Macro
  732.         _SMPAddMainEnclosure
  733.             dc.w     $203C
  734.             dc.w     $0004
  735.             dc.w     $127D
  736.             dc.w     $AA5D
  737.         EndM
  738.     ELSE
  739.         IMPORT_CFM_FUNCTION    SMPAddMainEnclosure
  740.     ENDIF
  741.  
  742. ;
  743. ; pascal OSErr SMPGetMainEnclosureFSSpec(WindowPtr window, FSSpec *enclosureDir)
  744. ;
  745.     IF ¬ GENERATINGCFM THEN
  746.         Macro
  747.         _SMPGetMainEnclosureFSSpec
  748.             dc.w     $203C
  749.             dc.w     $0004
  750.             dc.w     $127E
  751.             dc.w     $AA5D
  752.         EndM
  753.     ELSE
  754.         IMPORT_CFM_FUNCTION    SMPGetMainEnclosureFSSpec
  755.     ENDIF
  756.  
  757. ;
  758. ; pascal OSErr SMPAddContent(WindowPtr window, MailSegmentType segmentType, Boolean appendFlag, void *buffer, unsigned long bufferSize, StScrpRec *textScrap, Boolean startNewScript, ScriptCode script)
  759. ;
  760.     IF ¬ GENERATINGCFM THEN
  761.         Macro
  762.         _SMPAddContent
  763.             dc.w     $203C
  764.             dc.w     $000C
  765.             dc.w     $127A
  766.             dc.w     $AA5D
  767.         EndM
  768.     ELSE
  769.         IMPORT_CFM_FUNCTION    SMPAddContent
  770.     ENDIF
  771.  
  772. ;
  773. ; pascal OSErr SMPReadContent(WindowPtr window, MailSegmentMask segmentTypeMask, void *buffer, unsigned long bufferSize, unsigned long *dataSize, StScrpRec *textScrap, ScriptCode *script, MailSegmentType *segmentType, Boolean *endOfScript, Boolean *endOfSegment, Boolean *endOfContent, long *segmentLength, long *segmentID)
  774. ;
  775.     IF ¬ GENERATINGCFM THEN
  776.         Macro
  777.         _SMPReadContent
  778.             dc.w     $203C
  779.             dc.w     $0019
  780.             dc.w     $127B
  781.             dc.w     $AA5D
  782.         EndM
  783.     ELSE
  784.         IMPORT_CFM_FUNCTION    SMPReadContent
  785.     ENDIF
  786.  
  787. ;
  788. ; pascal OSErr SMPGetFontNameFromLetter(WindowPtr window, short fontNum, Str255 fontName, Boolean doneWithFontTable)
  789. ;
  790.     IF ¬ GENERATINGCFM THEN
  791.         Macro
  792.         _SMPGetFontNameFromLetter
  793.             dc.w     $203C
  794.             dc.w     $0006
  795.             dc.w     $127C
  796.             dc.w     $AA5D
  797.         EndM
  798.     ELSE
  799.         IMPORT_CFM_FUNCTION    SMPGetFontNameFromLetter
  800.     ENDIF
  801.  
  802. ;
  803. ; pascal OSErr SMPAddBlock(WindowPtr window, const OCECreatorType *blockType, Boolean append, void *buffer, unsigned long bufferSize, MailBlockMode mode, unsigned long offset)
  804. ;
  805.     IF ¬ GENERATINGCFM THEN
  806.         Macro
  807.         _SMPAddBlock
  808.             dc.w     $203C
  809.             dc.w     $000C
  810.             dc.w     $127F
  811.             dc.w     $AA5D
  812.         EndM
  813.     ELSE
  814.         IMPORT_CFM_FUNCTION    SMPAddBlock
  815.     ENDIF
  816.  
  817. ;
  818. ; pascal OSErr SMPReadBlock(WindowPtr window, const OCECreatorType *blockType, unsigned short blockIndex, void *buffer, unsigned long bufferSize, unsigned long dataOffset, unsigned long *dataSize, Boolean *endOfBlock, unsigned long *remaining)
  819. ;
  820.     IF ¬ GENERATINGCFM THEN
  821.         Macro
  822.         _SMPReadBlock
  823.             dc.w     $203C
  824.             dc.w     $0011
  825.             dc.w     $1280
  826.             dc.w     $AA5D
  827.         EndM
  828.     ELSE
  829.         IMPORT_CFM_FUNCTION    SMPReadBlock
  830.     ENDIF
  831.  
  832. ;
  833. ; pascal OSErr SMPEnumerateBlocks(WindowPtr window, unsigned short startIndex, void *buffer, unsigned long bufferSize, unsigned long *dataSize, unsigned short *nextIndex, Boolean *more)
  834. ;
  835.     IF ¬ GENERATINGCFM THEN
  836.         Macro
  837.         _SMPEnumerateBlocks
  838.             dc.w     $203C
  839.             dc.w     $000D
  840.             dc.w     $1281
  841.             dc.w     $AA5D
  842.         EndM
  843.     ELSE
  844.         IMPORT_CFM_FUNCTION    SMPEnumerateBlocks
  845.     ENDIF
  846.  
  847. ;
  848. ; pascal OSErr SMPDrawMailer(WindowPtr window)
  849. ;
  850.     IF ¬ GENERATINGCFM THEN
  851.         Macro
  852.         _SMPDrawMailer
  853.             dc.w     $203C
  854.             dc.w     $0002
  855.             dc.w     $1269
  856.             dc.w     $AA5D
  857.         EndM
  858.     ELSE
  859.         IMPORT_CFM_FUNCTION    SMPDrawMailer
  860.     ENDIF
  861.  
  862. ;
  863. ; pascal OSErr SMPSetSubject(WindowPtr window, const RString *text)
  864. ;
  865.     IF ¬ GENERATINGCFM THEN
  866.         Macro
  867.         _SMPSetSubject
  868.             dc.w     $203C
  869.             dc.w     $0004
  870.             dc.w     $126B
  871.             dc.w     $AA5D
  872.         EndM
  873.     ELSE
  874.         IMPORT_CFM_FUNCTION    SMPSetSubject
  875.     ENDIF
  876.  
  877. ;
  878. ; pascal OSErr SMPSetFromIdentity(WindowPtr window, AuthIdentity from)
  879. ;
  880.     IF ¬ GENERATINGCFM THEN
  881.         Macro
  882.         _SMPSetFromIdentity
  883.             dc.w     $203C
  884.             dc.w     $0004
  885.             dc.w     $126C
  886.             dc.w     $AA5D
  887.         EndM
  888.     ELSE
  889.         IMPORT_CFM_FUNCTION    SMPSetFromIdentity
  890.     ENDIF
  891.  
  892. ;
  893. ; pascal OSErr SMPAddAddress(WindowPtr window, SMPAddressType addrType, OCEPackedRecipient *address)
  894. ;
  895.     IF ¬ GENERATINGCFM THEN
  896.         Macro
  897.         _SMPAddAddress
  898.             dc.w     $203C
  899.             dc.w     $0005
  900.             dc.w     $126D
  901.             dc.w     $AA5D
  902.         EndM
  903.     ELSE
  904.         IMPORT_CFM_FUNCTION    SMPAddAddress
  905.     ENDIF
  906.  
  907. ;
  908. ; pascal OSErr SMPAddAttachment(WindowPtr window, const FSSpec *attachment)
  909. ;
  910.     IF ¬ GENERATINGCFM THEN
  911.         Macro
  912.         _SMPAddAttachment
  913.             dc.w     $203C
  914.             dc.w     $0004
  915.             dc.w     $126E
  916.             dc.w     $AA5D
  917.         EndM
  918.     ELSE
  919.         IMPORT_CFM_FUNCTION    SMPAddAttachment
  920.     ENDIF
  921.  
  922. ;
  923. ; pascal OSErr SMPAttachDialog(WindowPtr window)
  924. ;
  925.     IF ¬ GENERATINGCFM THEN
  926.         Macro
  927.         _SMPAttachDialog
  928.             dc.w     $203C
  929.             dc.w     $0002
  930.             dc.w     $1276
  931.             dc.w     $AA5D
  932.         EndM
  933.     ELSE
  934.         IMPORT_CFM_FUNCTION    SMPAttachDialog
  935.     ENDIF
  936.  
  937. ;
  938. ; pascal OSErr SMPExpandOrContract(WindowPtr window, Boolean expand)
  939. ;
  940.     IF ¬ GENERATINGCFM THEN
  941.         Macro
  942.         _SMPExpandOrContract
  943.             dc.w     $203C
  944.             dc.w     $0003
  945.             dc.w     $1272
  946.             dc.w     $AA5D
  947.         EndM
  948.     ELSE
  949.         IMPORT_CFM_FUNCTION    SMPExpandOrContract
  950.     ENDIF
  951.  
  952. ;
  953. ; pascal OSErr SMPMoveMailer(WindowPtr window, short dh, short dv)
  954. ;
  955.     IF ¬ GENERATINGCFM THEN
  956.         Macro
  957.         _SMPMoveMailer
  958.             dc.w     $203C
  959.             dc.w     $0004
  960.             dc.w     $126A
  961.             dc.w     $AA5D
  962.         EndM
  963.     ELSE
  964.         IMPORT_CFM_FUNCTION    SMPMoveMailer
  965.     ENDIF
  966.  
  967. ;
  968. ; pascal OSErr SMPBecomeTarget(WindowPtr window, Boolean becomeTarget, SMPMailerComponent whichField)
  969. ;
  970.     IF ¬ GENERATINGCFM THEN
  971.         Macro
  972.         _SMPBecomeTarget
  973.             dc.w     $203C
  974.             dc.w     $0005
  975.             dc.w     $1273
  976.             dc.w     $AA5D
  977.         EndM
  978.     ELSE
  979.         IMPORT_CFM_FUNCTION    SMPBecomeTarget
  980.     ENDIF
  981.  
  982. ;
  983. ; pascal OSErr SMPGetComponentSize(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, unsigned short *size)
  984. ;
  985.     IF ¬ GENERATINGCFM THEN
  986.         Macro
  987.         _SMPGetComponentSize
  988.             dc.w     $203C
  989.             dc.w     $0007
  990.             dc.w     $1277
  991.             dc.w     $AA5D
  992.         EndM
  993.     ELSE
  994.         IMPORT_CFM_FUNCTION    SMPGetComponentSize
  995.     ENDIF
  996.  
  997. ;
  998. ; pascal OSErr SMPGetComponentInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer)
  999. ;
  1000.     IF ¬ GENERATINGCFM THEN
  1001.         Macro
  1002.         _SMPGetComponentInfo
  1003.             dc.w     $203C
  1004.             dc.w     $0007
  1005.             dc.w     $1278
  1006.             dc.w     $AA5D
  1007.         EndM
  1008.     ELSE
  1009.         IMPORT_CFM_FUNCTION    SMPGetComponentInfo
  1010.     ENDIF
  1011.  
  1012. ;
  1013. ; pascal OSErr SMPGetListItemInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer, unsigned long bufferLength, unsigned short startItem, unsigned short *itemCount, unsigned short *nextItem, Boolean *more)
  1014. ;
  1015.     IF ¬ GENERATINGCFM THEN
  1016.         Macro
  1017.         _SMPGetListItemInfo
  1018.             dc.w     $203C
  1019.             dc.w     $0010
  1020.             dc.w     $1279
  1021.             dc.w     $AA5D
  1022.         EndM
  1023.     ELSE
  1024.         IMPORT_CFM_FUNCTION    SMPGetListItemInfo
  1025.     ENDIF
  1026.  
  1027. ;
  1028. ; pascal OSErr SMPImage(WindowPtr window, SMPDrawImageUPP drawImageProc, long imageRefCon, Boolean supportsColor)
  1029. ;
  1030.     IF ¬ GENERATINGCFM THEN
  1031.         Macro
  1032.         _SMPImage
  1033.             dc.w     $203C
  1034.             dc.w     $0007
  1035.             dc.w     $1282
  1036.             dc.w     $AA5D
  1037.         EndM
  1038.     ELSE
  1039.         IMPORT_CFM_FUNCTION    SMPImage
  1040.     ENDIF
  1041.  
  1042. ;
  1043. ; pascal OSErr SMPGetNextLetter(OSType *typesList, short numTypes, LetterDescriptor *adjacentLetter)
  1044. ;
  1045.     IF ¬ GENERATINGCFM THEN
  1046.         Macro
  1047.         _SMPGetNextLetter
  1048.             dc.w     $203C
  1049.             dc.w     $0005
  1050.             dc.w     $1286
  1051.             dc.w     $AA5D
  1052.         EndM
  1053.     ELSE
  1054.         IMPORT_CFM_FUNCTION    SMPGetNextLetter
  1055.     ENDIF
  1056.  
  1057. ;
  1058. ; pascal OSErr SMPGetLetterInfo(LetterSpec *mailboxSpec, SMPLetterInfo *info)
  1059. ;
  1060.     IF ¬ GENERATINGCFM THEN
  1061.         Macro
  1062.         _SMPGetLetterInfo
  1063.             dc.w     $203C
  1064.             dc.w     $0004
  1065.             dc.w     $128A
  1066.             dc.w     $AA5D
  1067.         EndM
  1068.     ELSE
  1069.         IMPORT_CFM_FUNCTION    SMPGetLetterInfo
  1070.     ENDIF
  1071.  
  1072.     ENDIF ; __OCESTANDARDMAIL__
  1073.